<?php 
header("Content-type:text/html;charset=utf-8");
echo '<h2>1学生案例</h2>';
/*$zmh=array('stuno'=>'224316','name'=>'查茂鸿','sex'=>'男','birth'=>'1995-10-22','class'=>'计算机14004');
$zmh['major']='计算机科学与技术';

$zy=array('stuno'=>'224317','name'=>'张扬','sex'=>'男','birth'=>'1995-10-22','class'=>'计算机14004','major'=>'计算机科学与技术');


$zs=array('stuno'=>'224318','name'=>'张三','sex'=>'男','birth'=>'1995-10-22','class'=>'计算机14004','major'=>'计算机科学与技术');
$stus=array($zmh,$zy,$zs);
var_dump($stus);*/

echo '<h2>2用户案例</h2>';
/*$user1=array(
	'username'=>'zhamaohong',
	'password'=>'84832267',
	'realname'=>'查茂鸿',
	'sex'=>'男',
	'hobby'=>'游泳，唱歌，乒乓球',
	'thumb'=>'thumb/zmh.jpg',
	'email'=>'2043439620@qq.com'
	);

$user2=array(
	'username'=>'zhangyang',
	'password'=>'84832267',
	'realname'=>'张扬',
	'sex'=>'男',
	'hobby'=>'游泳，唱歌，乒乓球',
	'thumb'=>'thumb/zmh.jpg',
	'email'=>'2043439625@qq.com'
	);
$users=array($user1,$user2);
//var_dump($users);
foreach ($users as $one) {
  echo '用户名:'.$one['username'].'<br>';
  echo '姓名:'.$one['realname'].'<br>';
}*/

echo '<h2>3.视频案例</h2>';
$categoty_movie=array(
	'id'=>1,
	'categoty_name'=>'电影'
	);

$categoty_series=array(
	'id'=>2,
	'categoty_name'=>'电视剧'
	);


$categoty_recreation=array(
	'id'=>3,
	'categoty_name'=>'综艺'
	);

$categoty=array($categoty_movie,$categoty_series,$categoty_recreation);

$video1=array(
   'id'=>1,
   'name'=>'美人鱼',
   'intro'=>'还可以',
   'director'=>'周星驰',
   'thumb'=>'fish.jpg',
   'categoty_id'=>1,
   'categoty_name'=>'电影'
    );


$vedio2=array(
   'id'=>2,
   'name'=>'疯狂动物城',
   'intro'=>'还可以',
   'director'=>'国外导演',
   'thumb'=>'animal.jpg',
   'categoty_id'=>1,
   'categoty_name'=>'电影'
    );


$mvedio3=array(
   'id'=>3,
   'name'=>'花千骨',
   'intro'=>'还可以',
   'director'=>'周星驰',
   'thumb'=>'fish.jpg',
   'categoty_id'=>2,
   'categoty_name'=>'电视剧'
    );


$vedio4=array(
   'id'=>4,
   'name'=>'琅琊绑',
   'intro'=>'还可以',
   'director'=>'国外导演',
   'thumb'=>'animal.jpg',
   'categoty_id'=>2,
   'categoty_name'=>'电视剧'
    );

$vedio5=array(
   'id'=>1,
   'name'=>'我是歌手',
   'intro'=>'还可以',
   'director'=>'周星驰',
   'thumb'=>'fish.jpg',
   'categoty_id'=>3,
   'categoty_name'=>'综艺'
    );


$mvedio6=array(
   'id'=>2,
   'name'=>'中国好声音',
   'intro'=>'还可以',
   'director'=>'国外导演',
   'thumb'=>'animal.jpg',
   'categoty_id'=>3,
   'categoty_name'=>'综艺'
    );
$videos=();
$movies=array(
     'categoty_id'=>1,
     'categoty_name'=>'电影',
     'videos'=>array($video1,$video2)
	);
$videos[]=$movies;
 ?>
